package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysRoleAccess;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleAccessMapper extends BaseMapper<SysRoleAccess> {
    List<SysRoleAccess> findAll();

    List<SysRoleAccess> findByRoleId(int roleId);

    int insertOld(int roleId, int accessId);

    int deleteByIdOld(int id);

    int deleteByRoleId(int roleId);

    int deleteByAccessId(int accessId);

    int updateStatus(int status,int id);
}
